import {Navigate} from 'react-router-dom'
//一级路由
import Login from "../views/liu/Login"
import Register from '../views/liu/Register.tsx'
import Index from '../views/Index.tsx'
import NotFound from '../views/liu/NotFound.tsx'

//二级路由
import Work from '../views/liu/Work.tsx'
import Mydata from '../views/zheng/Mydata'
import ResetPass from '../views/zheng/ResetPass'
//签约管理
import SignPending from '../views/liu/SignPending.tsx'
import SignRecord from '../views/liu/SignRecord.tsx'
import SignDetail from '../views/liu/SignDetail.tsx'
import SignEdit from '../views/liu/SignEdit.tsx'
import RecordDetail from '../views/liu/RecordDetail.tsx'
import RecordEdit from '../views/liu/RecordEdit.tsx'
//服务管理
import ServePending from '../views/liu/ServePending.tsx'
import ServeRecord from '../views/liu/ServeRecord.tsx'
import ServeDetail from '../views/liu/ServeDetail.tsx'
import ServeEdit from '../views/liu/ServeEdit.tsx'
import ServeAdd from '../views/liu/ServeAdd.tsx'
import ServeRecordDetail from '../views/liu/ServeRecordDetail.tsx'
//居民管理
import Resident from '../views/liu/Resident.tsx'
//消息管理
import Message from '../views/liu/Message.tsx'

//资料管理-zheng
import DataOrganization from '../views/zheng/DataOrganization.tsx'
import Addorg from '../views/zheng/Addorg'
import Handleorg from '../views/zheng/Handleorg'
import DataTeam from '../views/zheng/DataTeam.tsx'
import TeamDetail from '../views/zheng/TeamDetail'
import AddTeam from '../views/zheng/AddTeam'
import DataDoctor from '../views/zheng/DataDoctor.tsx'
import DataServicePack from '../views/zheng/DataServicePack.tsx'
import DataServiceProject from '../views/zheng/DataServiceProject.tsx'
import DataPerformance from '../views/zheng/DataPerformance.tsx'

//资料-服务项目管理-新增
import ServeProjectAdd from '../views/zheng/ServeProjectAdd.tsx'
import ServeProjectEdit from '../views/zheng/ServeProjectEdit.tsx'

//数据统计
import DataSurvey from '../views/jiang/DataSurvey.tsx'
import DataSign from '../views/jiang/DataSign.tsx'
import DataService from '../views/jiang/DataService.tsx'
import DataHealth from '../views/jiang/DataHealth.tsx'
import DataTag from '../views/jiang/DataTag.tsx'
import DataAge from '../views/jiang/DataAge.tsx'
import DataEducation from '../views/jiang/DataEducation.tsx'
import DataGender from '../views/jiang/DataGender.tsx'


 // 增加居民详情及子路由(健康档案/健康记录/签约信息/服务记录)
 import ResidentParticulars from '../views/jiang/ResidentParticulars.tsx'
 import HealthFile from '../views/jiang/Resident/HealthFile.tsx'
 import HealthRecord from '../views/jiang/Resident/HealthRecord.tsx'
 import SigningInformation from '../views/jiang/Resident/SigningInformation.tsx'
 import ServiceLog from '../views/jiang/Resident/ServiceLog.tsx'





//系统设置
import SystemTag from '../views/chen/SystemTag.tsx'
import SystemRole from '../views/chen/SystemRole.tsx'
import SystemConsut from '../views/chen/SystemConsut.tsx'
import SystemDrug from '../views/chen/SystemDrug.tsx'
import SystemSwiper from '../views/chen/SystemSwiper.tsx'
import SystemNotice from '../views/chen/SystemNotice.tsx'
import SystemAgreement from '../views/chen/SystemAgreement.tsx'
import SystemHandle from '../views/chen/SystemHandle.tsx'


export default [
    {path:'/login',element:<Login/>,},
    {path:'/register',element:<Register/>,},
    {
        path:'/index',
        element:<Index/>,
        children:[
            //工作台
            {path:'/index/work',element:<Work/>,},
            //签约管理
            {path:'/index/sign-pending',element:<SignPending/>},
            {path:'/index/sign-record',element:<SignRecord/>},
            {path:'/index/sign-detail',element:<SignDetail/>},
            {path:'/index/sign-edit',element:<SignEdit/>},
            {path:'/index/record-detail',element:<RecordDetail/>},
            {path:'/index/record-edit',element:<RecordEdit/>},
            //服务管理
            {path:'/index/serve-pending',element:<ServePending/>},
            {path:'/index/serve-record',element:<ServeRecord/>},
            {path:'/index/serve-detail',element:<ServeDetail/>},
            {path:'/index/serve-edit',element:<ServeEdit/>},
            {path:'/index/serve-add',element:<ServeAdd/>},
            {path:'/index/serverrecord-detail',element:<ServeRecordDetail/>},
            //居民管理
            {path:'/index/resident',element:<Resident/>},
            //消息管理
            {path:'/index/message',element:<Message/>},
            // 资料管理-zheng
            {path:'/index/info-organization',element:<DataOrganization/>},
                {path:'/index/info-organization-addorg',element:<Addorg/>},
                {path:'/index/info-organization-handleorg',element:<Handleorg/>},
            {path:'/index/info-team',element:<DataTeam/>},
                {path:'/index/info-team-addteam',element:<AddTeam/>},
                {path:'/index/info-team-teamdetail',element:<TeamDetail/>},
            {path:'/index/info-doctor',element:<DataDoctor/>},
            {path:'/index/info-service-pack',element:<DataServicePack/>},
            {path:'/index/info-service-project',element:<DataServiceProject/>},
            {path:'/index/info-performance',element:<DataPerformance/>},
            
            
            
            
            
            //资料-服务项目管理 新增路由
            {path:'/index/serveproject-add',element:<ServeProjectAdd/>},
            {path:'/index/serveproject-edit',element:<ServeProjectEdit/>},


            //数据统计-jiang
            {path:'/index/data-survey',element:<DataSurvey/>},
            {path:'/index/data-sign',element:<DataSign/>},
            {path:'/index/data-service',element:<DataService/>},
            {path:'/index/data-health',element:<DataHealth/>},
            {path:'/index/data-tag',element:<DataTag/>},
            {path:'/index/data-age',element:<DataAge/>},
            {path:'/index/data-education',element:<DataEducation/>},
            {path:'/index/data-gender',element:<DataGender/>},

            
            // 增加居民详情及子路由(健康档案/健康记录/签约信息/服务记录)
            {
                path:'/index/resident-particulars',element:<ResidentParticulars/>,
                children:[
                    {path:'/index/resident-particulars/health-file',element:<HealthFile/>},
                    {path:'/index/resident-particulars/health-record',element:<HealthRecord/>},
                    {path: '/index/resident-particulars/signing-information',element:<SigningInformation/>},
                    {path: '/index/resident-particulars/service-log' ,element:<ServiceLog/>},
                    {path:'/index/resident-particulars',element:<Navigate to='/index/resident-particulars/health-file'/>,},
                ]
               
            },

            //系统设置-chen
            {path:'/index/system-tag',element:<SystemTag/>},
            {path:'/index/system-role',element:<SystemRole/>},
            {path:'/index/system-consult',element:<SystemConsut/>},
            {path:'/index/system-drug',element:<SystemDrug/>},
            {path:'/index/system-swiper',element:<SystemSwiper/>},
            {path:'/index/system-notice',element:<SystemNotice/>},
            {path:'/index/system-agreement',element:<SystemAgreement/>},
            {path:'/index/system-handle',element:<SystemHandle/>},

            {path:'/index/mydata',element:<Mydata/>},
            {path:'/index/resetpass',element:<ResetPass/>},


            {path:'/index',element:<Navigate to='/index/work'/>,},
        ]
    },
    {path:'/',element:<Navigate to='/index'/>,},
    {path:'*',element:<NotFound/>,},
]